Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEX: Only pass CPU tunables to FEXCore and FEXLoader #3261

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

Sonicadvance1
Copy link
Member

This fixes an issue where CPU tunables were ending up in the thunk generator which means if your CPU doesn't support all the features on the Builder then it would crash with SIGILL. This was happening with Canonical's runners because they typically only support ARMv8.2 but we are compiling packages to run on ARMv8.4 devices.

cc: FEX-2311.1

This fixes an issue where CPU tunables were ending up in the thunk
generator which means if your CPU doesn't support all the features on
the *Builder* then it would crash with SIGILL. This was happening with
Canonical's runners because they typically only support ARMv8.2 but we
are compiling packages to run on ARMv8.4 devices.

cc: FEX-2311.1
@Sonicadvance1 Sonicadvance1 added bug Something isn't working Ready For Review labels Nov 8, 2023
Copy link
Member

@neobrain neobrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of complexity here to enable march by default but then opting-out of all the special cases... has -march= been measured to provide a significant benefit that's worth this?

Code change itself is fine, though dropping all of the related code and leaving march options in the control of the user seems like a more robust and maintainable approach.

@Sonicadvance1
Copy link
Member Author

Lots of complexity here to enable march by default but then opting-out of all the special cases... has -march= been measured to provide a significant benefit that's worth this?

Code change itself is fine, though dropping all of the related code and leaving march options in the control of the user seems like a more robust and maintainable approach.

Yes. Especially going from ARMv8.0 to ARMv8.1/v8.2

@Sonicadvance1 Sonicadvance1 merged commit b4eeb96 into FEX-Emu:main Nov 9, 2023
@Sonicadvance1 Sonicadvance1 deleted the tuning_options branch November 9, 2023 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants